# 1 "../Codes/MCU_Mold/MCU_Time.c"
# 1 "E:\\APT_Landscape_mode\\APT32F1023_New\\Source//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "../Codes/MCU_Mold/MCU_Time.c"


# 1 "../Codes/MCU_Mold/MCU_Time.h" 1
# 1 "../Codes/Y36_LCD_horizontal/typed.h" 1





typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;

typedef unsigned short uint16_t;

typedef unsigned long long uint64_t;
# 1 "include/apt32f102_ck801.h" 1
# 85 "include/apt32f102_ck801.h"
typedef enum IRQn
{

        ISR_Restart = -32,
        ISR_Misaligned_Access = -31,
        ISR_Access_Error = -30,
        ISR_Divided_By_Zero = -29,
        ISR_Illegal = -28,
        ISR_Privlege_Violation = -27,
        ISR_Trace_Exection = -26,
        ISR_Breakpoint_Exception = -25,
        ISR_Unrecoverable_Error = -24,
        ISR_Idly4_Error = -23,
        ISR_Auto_INT = -22,
        ISR_Auto_FINT = -21,
        ISR_Reserved_HAI = -20,
        ISR_Reserved_FP = -19,
        ISR_TLB_Ins_Empty = -18,
        ISR_TLB_Data_Empty = -17,

        INTC_CORETIM_IRQn = 0,
        INTC_TIME1_IRQn = 1,
        INTC_UART0_IRQn = 2,
        INTC_GPIOA2_IRQn = 8,
} IRQn_Type;


void INTC_Init(void);
void force_interrupt(IRQn_Type IRQn);

void CK_CPU_EnAllNormalIrq(void);
void CK_CPU_DisAllNormalIrq(void);
# 15 "../Codes/Y36_LCD_horizontal/typed.h" 2
# 2 "../Codes/MCU_Mold/MCU_Time.h" 2




typedef struct
{
    unsigned int hour;
    unsigned int minute;
    unsigned int seconds;
}MCU_Time_T;

void TotalConvertTime(MCU_Time_T* time, unsigned int total);
unsigned int TimeConvertTotal(MCU_Time_T tm);
# 4 "../Codes/MCU_Mold/MCU_Time.c" 2



void TotalConvertTime(MCU_Time_T* time, unsigned int total)
{
    time->hour = (total / 3600) % 100;
    time->minute = (total / 60) % 60;
    time->seconds = total % 60;
}

unsigned int TimeConvertTotal(MCU_Time_T tm)
{
    return (tm.hour * 3600 + tm.minute * 60 + tm.seconds);
}
